﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using TLL.Log;
using TLL.Finance.Currencys;

namespace TLL.Finance
{
    public class Invoice
    {
        private int id = 0;
        private double value = 0;
        private CurrencyType type = default(CurrencyType);
        private DateTime date = DateTime.Now;
        private LogTime time = LogTime.Empty;
        public CurrencyType Type { get { return this.type; } }
        public DateTime Date { get { return this.date; } }
        public double Value { get { return this.value; } }
        public int ID { get { return this.id; } }
        public LogTime Time { get { return this.time; } }
        public static Invoice Empty { get { return new Invoice(0, default(CurrencyType), DateTime.MinValue, LogTime.Empty, 0); } }
        public Invoice(CurrencyType type, DateTime date, double value)
        {
            this.type = type;
            this.date = date;
            this.value = value;
        }
        public Invoice(int id, CurrencyType type, DateTime date, LogTime time, double value)
        {
            this.id = id;
            this.type = type;
            this.date = date;
            this.time = time;
            this.value = value;
        }
    }
}
